var BaseUI= cc.Class({
    extends: cc.Component,
//需要其他代码联系 BatchMichaelbXKxyJ@gmail.com
    properties: {
       
    },

    onLoad() {
        this.basePos = this.node.getPosition();
        this.close();
    },
    open() {
        this.node.active = true;
        this.scheduleOnce(() => {
            this.node.position = cc.Vec2.ZERO;
        }, 0.01);
    },

    close() {
        this.node.active = false;
        if(!this.basePos)this.basePos=  cc.Vec2.ZERO;
        this.node.setPosition(this.basePos);
    },
});
export default BaseUI;